package com.example.musicserver.service;

import com.example.musicserver.mapper.UserInfoMapper;
import com.example.musicserver.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public UserInfo queryByName(String name) {
        return userInfoMapper.queryByName(name);
    }

    public Integer registry(String name,String password) {
        return userInfoMapper.registry(name,password);
    }
}
